package me.keiwu.pub.rpc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by kei on 24/02/2018.
 */
public interface NoticeRpcPub {


    @RequestMapping("/rpc/notice")
    String notice(@RequestParam("noticeType") Integer noticeType,
                  @RequestParam("fromUser") Long fromUser,
                  @RequestParam("toUser") Long toUser,
                  @RequestParam("redPoint") Boolean redPoint);



    @RequestMapping("/rpc/notice")
    String notice(@RequestParam("noticeType") Integer noticeType,
                  @RequestParam("fromUser") Long fromUser,
                  @RequestParam("toUser") Long toUser,
                  @RequestParam("redPoint") Boolean redPoint,
                  @RequestParam("addition") String addition);



    @RequestMapping("/rpc/notice/checkNotRead")
    boolean checkNotRead(@RequestParam("noticeType") Integer noticeType,
                  @RequestParam("userId") Long userId);


    @RequestMapping("/rpc/notice/unique")
    String uniqueNotice(@RequestParam("noticeType") Integer noticeType,
                        @RequestParam("uniqueKey") String uniqueKey,
                        @RequestParam("fromUser") Long fromUser,
                        @RequestParam("toUser") Long toUser,
                        @RequestParam("redPoint") Boolean redPoint);

    @RequestMapping("/rpc/notice/unique")
    String uniqueNotice(@RequestParam("noticeType") Integer noticeType,
                        @RequestParam("uniqueKey") String uniqueKey,
                        @RequestParam("fromUser") Long fromUser,
                        @RequestParam("toUser") Long toUser,
                        @RequestParam("redPoint") Boolean redPoint,
                        @RequestParam("addition") String addition);

    @RequestMapping("/rpc/notice/unreadChallengeNotice")
    String unreadChallengeNotice(@RequestParam("page") int page,
                                 @RequestParam("size") int size,
                                 @RequestParam("startTime") int startTime,
                                 @RequestParam("endTime") int endTime);

}
